package com.jl.sms;

import com.jl.sms.userdata.UserDataParam;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 * 
 * @author Administrator
 */
public class GSMParamBean {

	private String PID = "40";
	private String TP_MTI = "00";
	private String TP_RD = "0";
	private String TP_VPF = "00";
	private String TP_MMS = "0";
	private String TP_SRI = "0";
	private String TP_RP = "0";
	private String TP_SRR = "0";
	private String TP_MR = "00";
	private String TP_UDHI = null;
	private String Address = null;
	private String TP_SCTS = null;
	private String Info = null;
	private String SMS_Type = "GSM";
	private String SMS_Format = null;
	private String SMS_Tag = null;
	private String MACLen = "08";
	private int code;
	private UserDataParam param;
	private String Temp = PID;
	private String userdata;

	public String getTP_UDHI() {
		return TP_UDHI;
	}
	
	public void setTP_UDHI(String tP_UDHI) {
		TP_UDHI = tP_UDHI;
	}

	public String getUserdata() {
		return userdata;
	}

	public void setUserdata(String userdata) {
		this.userdata = userdata;
	}

	public String getAddress() {
		return Address;
	}

	public void setAddress(String Address) {
		this.Address = Address;
	}

	public String getTP_SCTS() {
		return TP_SCTS;
	}

	public void setTP_SCTS(String TP_SCTS) {
		this.TP_SCTS = TP_SCTS;
	}

	public String getInfo() {
		return Info;
	}

	public void setInfo(String Info) {
		this.Info = Info;
	}

	public String getTP_MTI() {
		return TP_MTI;
	}

	public String getTP_MR() {
		return TP_MR;
	}

	public void setTP_MR(String TP_MR) {
		this.TP_MR = TP_MR;
	}

	public void setPID(String PID) {
		this.PID = PID;
		if (!PID.equalsIgnoreCase("7F"))
			this.Temp = PID;
	}

	public String getTemp() {
		return this.Temp;
	}

	public String getTP_MMS() {
		return TP_MMS;
	}

	public void setTP_MMS(String TP_MMS) {
		this.TP_MMS = TP_MMS;
	}

	public String getTP_SRI() {
		return TP_SRI;
	}

	public void setTP_SRI(String TP_SRI) {
		this.TP_SRI = TP_SRI;
	}

	public String getTP_RP() {
		return TP_RP;
	}

	public void setTP_RP(String TP_RP) {
		this.TP_RP = TP_RP;
	}

	public String getTP_SRR() {
		return TP_SRR;
	}

	public void setTP_SRR(String TP_SRR) {
		this.TP_SRR = TP_SRR;
	}

	public String getTP_RD() {
		return TP_RD;
	}

	public void setTP_RD(String TP_RD) {
		this.TP_RD = TP_RD;
	}

	public String getTP_VPF() {
		return TP_VPF;
	}

	public void setTP_VPF(String TP_VPF) {
		this.TP_VPF = TP_VPF;
	}

	public String getPID() {
		return this.PID;
	}

	public boolean isGSM() {
		return SMS_Type.equalsIgnoreCase("GSM");
	}

	public boolean isSubmit() {
		return SMS_Format.equalsIgnoreCase("submit");
	}

	public boolean is3G() {
		return SMS_Tag.equalsIgnoreCase("3g");
	}

	public String getSMS_Type() {
		return SMS_Type;
	}

	public void setSMS_Type(String SMS_Type) {
		this.SMS_Type = SMS_Type;
	}

	public String getSMS_Format() {
		return SMS_Format;
	}

	public void setSMS_Format(String SMS_Format) {
		this.SMS_Format = SMS_Format;
		if(isSubmit()){
			this.TP_MTI = "01";
		}else{
			this.TP_MTI = "00";
		}
		
	}

	public String getSMS_Tag() {
		return SMS_Tag;
	}

	public void setSMS_Tag(String SMS_Tag) {
		this.SMS_Tag = SMS_Tag;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public UserDataParam getParam() {
		return param;
	}

	public void setParam(UserDataParam param) {
		this.param = param;
	}
	public String getMACLen() {
		return MACLen;
	}

	public void setMACLen(String mACLen) {
		MACLen = mACLen;
	}
}
